package com.zzyl.nursing.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 设备上报数据响应模型
 * @author ghy
 * @version 1.0
 * @since 2025-08-23 10:37
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(description = "设备上报数据响应模型")
public class DeviceReportDataVo {

    @ApiModelProperty(value = "属性名")
    private String functionId;

    @ApiModelProperty(value = "上报时间,格式：yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime eventTime;

    @ApiModelProperty(value = "上报数据")
    private Object value;

}
